<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html lang="zh">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
  <title>数据列表 - bootstrap中文后台管理系统模板</title>
  <link rel="icon" href="${pageContext.request.contextPath}/static/admin/favicon.ico" type="image/ico">
  <meta name="keywords" content="后台模板,后台管理系统,HTML模板">
  <meta name="description" content="基于Bootstrap的后台管理系统模板">
  <meta name="author" content="www.bootstrapmb.com">
  <link href="${pageContext.request.contextPath}/static/admin/css/bootstrap.min.css" rel="stylesheet">
  <link href="${pageContext.request.contextPath}/static/admin/css/fonts.css" rel="stylesheet">
  <link href="${pageContext.request.contextPath}/static/admin/css/style.css" rel="stylesheet">
</head>

<body>
<!--页面主要内容-->
<main class="ftdms-layout-content">

  <div class="container-fluid" style="margin-bottom:90px;">

    <div class="row" style="margin-top:15px;">
      <div class="col-lg-12">
        <div class="card">
          <div class="card-toolbar clearfix">
            <form class="pull-right search-bar" method="get" action="#!" role="form">
              <div class="input-group">
                <div class="input-group-btn">
                  <input type="hidden" name="search_field" id="search-field" value="title">
                  <button class="btn btn-default dropdown-toggle" id="search-btn"
                          data-toggle="dropdown" type="button" aria-haspopup="true"
                          aria-expanded="false">
                    标题 <span class="caret"></span>
                  </button>
                  <ul class="dropdown-menu">
                    <li><a tabindex="-1" href="javascript:void(0)" data-field="title">标题</a></li>
                    <li><a tabindex="-1" href="javascript:void(0)" data-field="cat_name">栏目</a>
                    </li>
                  </ul>
                </div>
                <input type="text" class="form-control" value="" name="keyword"
                       placeholder="请输入名称">
              </div>
            </form>
            <div class="toolbar-btn-action">
              <a class="btn btn-primary m-r-5 submenuitem"
                 href="${pageContext.request.contextPath}/admin/tobusinessadd.action" data-id="link552"
                 data-index="552"> 新增</a>
            </div>
          </div>
          <div class="card-body">

            <div class="table-responsive">
              <table class="table table-bordered">
                <thead>
                <tr>
                  <th>商家编号</th>
                  <th>商家名称</th>
                  <th>商家地址</th>
                  <th>商家电话</th>
                  <th>商家状态</th>
                  <th>操作</th>
                </tr>
                </thead>
                <tbody>
                <c:forEach items="${orderlist}" var="order">
                  <tr>
                    <td>${business.businessId}</td>
                    <td>${business.businessName}</td>
                    <td>${business.businessAddress}</td>
                    <td>${business.businessTel}</td>
                    <td>${business.bStateName}
                      <c:if test="${business.bStateId==4}">
                        <button class="btn btn-danger"
                                onclick="myfun1(${business.businessId},1)">恢复
                        </button>
                      </c:if>
                    </td>
                    <td>
                      <div class="btn-group">
                        <a class="btn btn-xs btn-default submenuitem"
                           href=""
                           target="_self" title="查看" data-toggle="tooltip"><i
                                class="ftsucai-user-6"></i></a>
                        <a class="btn btn-xs btn-default submenuitem" href="pages_data.html"
                           target="_self" title="编辑" data-toggle="tooltip"><i
                                class="ftsucai-edit-2"></i></a>
                        <a class="btn btn-xs btn-default submenuitem" href="pages_data.html"
                           target="_self" title="违规封禁" onclick="" data-toggle="tooltip"><i
                                class="ftsucai-del-2"></i></a>
                      </div>
                    </td>
                  </tr>
                </c:forEach>
                </tbody>
              </table>
            </div>

          </div>
        </div>
      </div>

    </div>

  </div>

</main>
<!--End 页面主要内容-->

<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/bootstrap.js"></script>
<script type="text/javascript"
        src="${pageContext.request.contextPath}/static/admin/js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/main.min.js"></script>
<script type="text/javascript">
  $(function () {
    $('.search-bar .dropdown-menu a').click(function () {
      var field = $(this).data('field') || '';
      $('#search-field').val(field);
      $('#search-btn').html($(this).text() + ' <span class="caret"></span>');
    });
  });

</script>
</body>
</html>